<?php

namespace App\Model;

use Util\Common;

/**
 * 用户优惠券-模型
 */
class MemberCoupon extends Model
{
//    use TimeZoneTrait;

    public bool $timestamps = true;

    protected ?string $table = 'member_coupon';
    /**
     * status状态注释
     */
    const NORMAL = 1;//状态 1=默认未使用
    const USED = 2;//已使用
    const TIMEOUT = 3;//

    protected array $fillable = [
        'id','member_id','coupon_id','start','end','status'
    ];

    protected array $casts = [
        'created_at' => 'datetime:Y-m-d H:i:s',
        'updated_at' => 'datetime:Y-m-d H:i:s',
    ];

}
